package com.example.sc.learn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
//EnableDiscoveryClient	创建DiscoveryClient接口的实现，对象为Eureka客户端EurekaDiscoveryClient实例
@EnableDiscoveryClient
//@EnableCircuitBreaker    //开启断路器功能
//@EnableHystrixDashboard
@EnableFeignClients(basePackages="com.example.sc.learn.service.*")
public class ScLearnBiningApplication {

	public static void main(String[] args) {

		SpringApplication.run(ScLearnUserApplication.class, args);
		System.out.println("====================================================================");
		System.out.println("====================================================================");
		System.out.println("======>>                                                <<==========");
		System.out.println("======>>                                                <<==========");
		System.out.println("======>>                    服务启动成功                 <<==========");
		System.out.println("======>>                                                <<==========");
		System.out.println("======>>                                                <<==========");
		System.out.println("====================================================================");
		System.out.println("====================================================================");
	}
}
